package com.example.eurekac.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Value("${server.port}")
    String port;

    @GetMapping("/get")
    public String getPort(@RequestParam String name) {

        return "this is" + port + "--" + name;
    }
    @GetMapping("/hi")
    public String Port(@RequestParam String name) {

        return "this is two" + port + "--" + name;
    }
}
